﻿using BoriPeter.NutritionFileSource.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace BoriPeter.NutritionFileSource.Models
{
    [XmlRoot("foods")]
    public class FoodList : IXMLList<FoodItem>
    {
        [XmlElement("food")]
        public List<FoodItem> Items { get; set; }

        public List<FoodItem> GetItems()
        {
            return Items;
        }


        public void SetItems(List<FoodItem> _list)
        {
            Items = _list;
        }
    }
}
